from views.base import BaseHandler
import json
from db.datab import db
class RolesHandler(BaseHandler):
    def get(self):
        #获取参数
        sql = "select * from roles"
        res = db.findAll(sql)
        mes = {"code":200,'rolelist':res}
        self.write(mes)
